﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Controller
{
    public delegate void UploadRelationalTableEventHandler(UploadRelationalTableEventArgs e);

    public class UploadRelationalTableEventArgs
    {
        public string Result { private set; get; }

        public int RowNumber { set; get; }

        public int Progress { set; get; }

        public bool Abort { set; get; }

        public Exception exception { private set; get; }

        public UploadRelationalTableEventArgs() { Abort = false; }
        
        public UploadRelationalTableEventArgs(string r)
        {
            Result = r;
        }

        public UploadRelationalTableEventArgs(Exception ex)
        {
            exception = ex;
        }
    }
}
